package cn.terminus.client.customer.contractrentdiscountclause.service;

import cn.terminus.client.customer.contractrentdiscountclause.param.ContractRentDiscountClauseNewParam;
import cn.terminus.client.customer.contractrentdiscountclause.param.ContractRentDiscountClauseEditParam;
import cn.terminus.client.customer.contractrentdiscountclause.param.ContractRentDiscountClauseQueryParam;
import cn.terminus.client.customer.contractrentdiscountclause.param.ContractRentDiscountClauseDeleteParam;
import cn.terminus.client.customer.contractrentdiscountclause.param.ContractRentDiscountClauseGetsParam;
import cn.terminus.client.customer.contractrentdiscountclause.result.ContractRentDiscountClauseResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * 合同优惠条款(ContractRentDiscountClause)表服务接口
 *
 * @author makejava
 * @since 2021-07-21 11:15:31
 */
public interface ContractRentDiscountClauseService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(ContractRentDiscountClauseNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(ContractRentDiscountClauseEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractRentDiscountClauseResult>> gets(ContractRentDiscountClauseGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(ContractRentDiscountClauseDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractRentDiscountClauseResult>> query(ContractRentDiscountClauseQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<ContractRentDiscountClauseResult>> page(ContractRentDiscountClauseQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
